﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Windows.Forms;
using Travan.ServerServices.CustomObjects;
using TravianAutoQueue.DomainModel;

namespace TravianMiniBot
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            currentaccount = new Account();
            currentaccount.Server = ConfigurationManager.AppSettings["server"];
            currentaccount.Username = ConfigurationManager.AppSettings["username"];
            currentaccount.Password = ConfigurationManager.AppSettings["password"];

            session = new TravianSession();
            session.Username = currentaccount.Username;
            session.Password = currentaccount.Password ;
            session.Server  = currentaccount.Server ;

            try
            {
                Application.Run(new Form1());
            }
            catch (Exception x)
            {
                
            }
            
        }

        public static Account currentaccount { get; set; }

        public static TravianSession session { get; set; }


    }
}
